package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DistributionSubMapper;
import com.ruoyi.system.domain.DistributionSub;
import com.ruoyi.system.service.IDistributionSubService;

/**
 * 分站提现Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-12
 */
@Service
public class DistributionSubServiceImpl implements IDistributionSubService 
{
    @Autowired
    private DistributionSubMapper distributionSubMapper;

    /**
     * 查询分站提现
     * 
     * @param id 分站提现ID
     * @return 分站提现
     */
    @Override
    public DistributionSub selectDistributionSubById(Integer id)
    {
        return distributionSubMapper.selectDistributionSubById(id);
    }

    /**
     * 查询分站提现列表
     * 
     * @param distributionSub 分站提现
     * @return 分站提现
     */
    @Override
    public List<DistributionSub> selectDistributionSubList(DistributionSub distributionSub)
    {
        return distributionSubMapper.selectDistributionSubList(distributionSub);
    }

    /**
     * 新增分站提现
     * 
     * @param distributionSub 分站提现
     * @return 结果
     */
    @Override
    public int insertDistributionSub(DistributionSub distributionSub)
    {
        return distributionSubMapper.insertDistributionSub(distributionSub);
    }

    /**
     * 修改分站提现
     * 
     * @param distributionSub 分站提现
     * @return 结果
     */
    @Override
    public int updateDistributionSub(DistributionSub distributionSub)
    {
        return distributionSubMapper.updateDistributionSub(distributionSub);
    }

    /**
     * 批量删除分站提现
     * 
     * @param ids 需要删除的分站提现ID
     * @return 结果
     */
    @Override
    public int deleteDistributionSubByIds(Integer[] ids)
    {
        return distributionSubMapper.deleteDistributionSubByIds(ids);
    }

    /**
     * 删除分站提现信息
     * 
     * @param id 分站提现ID
     * @return 结果
     */
    @Override
    public int deleteDistributionSubById(Integer id)
    {
        return distributionSubMapper.deleteDistributionSubById(id);
    }
}
